package com.dropdb.demo.service;

import com.dropdb.demo.bean.*;
import com.dropdb.demo.bean.vo.*;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author Alone
 * @version 1.0
 * @date 2020/6/26 16:26
 */
@Service
public interface AdminMarketService {
    List<MarketRegionListVO> queryRegions();

    MarketBaseDataVO queryBrands(Integer page, Integer limit, String sort, String order, Integer id, String name);

    Brand createBrand(Brand bo);

    MarketBaseDataVO queryOrders(Integer page, Integer limit, String sort, String order,Short[] orderStatusArray,Integer userId,String orderSn);

    MarketBaseDataVO queryIssues(Integer page, Integer limit, String sort, String order, String question);

    MarketBaseDataVO queryKeywords(Integer page, Integer limit, String sort, String order, String keyword, String url);

    List<MarketCategoryLevelVO> queryCategoryByLevel(String level);

    Keyword createKeyword(Keyword bo);

    Keyword updateKeyword(Keyword bo);

    void deleteKeyword(Keyword bo);

    List<MarketCategoryListVO> queryCategories();

    Brand updateBrand(Brand brand);

    void deleteBrand(Brand brand);

    Category createCategory(Category category);

    Category updateCategory(Category bo);

    void deleteCategory(MarketCategoryListVO bo);

    Issue createIssue(Issue issue);

    Issue issueUpdate(Issue bo);

    void deleteIssue(Issue bo);

    MarketOrderDetailVO orderDetail(Integer id);

    Order orderRefund(Map bo);

    Order orderShip(Map bo);
}
